import request from '@/utils/request'

// 查询规则评论列表
export function listAppRuleComment(query) {
  return request({
    url: '/yun/appRuleComment/list',
    method: 'get',
    params: query
  })
}

// 查询规则评论详细
export function getAppRuleComment(id) {
  return request({
    url: '/yun/appRuleComment/' + id,
    method: 'get'
  })
}

// 新增规则评论
export function addAppRuleComment(data) {
  return request({
    url: '/yun/appRuleComment',
    method: 'post',
    data: data
  })
}

// 修改规则评论
export function updateAppRuleComment(data) {
  return request({
    url: '/yun/appRuleComment',
    method: 'put',
    data: data
  })
}

// 删除规则评论
export function delAppRuleComment(id) {
  return request({
    url: '/yun/appRuleComment/' + id,
    method: 'delete'
  })
}
